Carbon


MPBlockClear

Header: Multiprocessing.h Carbon status: Supported

Clears a block of memory.

void MPBlockClear (
    LogicalAddress address, 
    ByteCount size
);
address

The starting address of the memory block you want to clear.

size

The number of bytes you want to clear.

DISCUSSION

As with all shared memory, your application must synchronize access to the memory blocks to avoid data corruption. MPBlockClear ensures the clearing stays within the bounds of the area specified by size, but the calling task can be preempted during the copying process.

VERSION NOTES

Introduced with Multiprocessing Services 2.0.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when MPLibrary 2.0 or later is installed. Exported by CarbonLib 1.0 and later and by MPLibrary 2.0 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/6/2000)